﻿@model IEnumerable<sBlog.Net.Domain.Entities.StatusEntity>
@{
    ViewBag.Title = "Manage Status";
}
<h2>
    Quản lý status</h2>
<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table id="manage-table">
    <tr>
        <th class="header" scope="col">
            Add/Edit
        </th>
        <th class="header" scope="col">
            Status
        </th>
        <th class="header" scope="col">
            CreateDate
        </th>
        <th class="header" scope="col">
            UpdateDate
        </th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.ActionLink("Edit", "Edit", new { id = item.StatusID }) |
                @Html.ActionLink("Delete", "Delete", new { id = item.StatusID }, new { onclick = "return confirm('Bạn có muốn xóa tin này không ?')" })
            </td>
            <td>
                @item.Status
            </td>
            <td>
                @String.Format("{0:g}", item.CreateDate)
            </td>
            <td>
                @String.Format("{0:g}", item.UpdateDate)
            </td>
        </tr>
    }
    <tr>
        <th class="footer" scope="col">
            Add/Edit
        </th>
        <th class="footer" scope="col">
            Status
        </th>
        <th class="footer" scope="col">
            CreateDate
        </th>
        <th class="footer" scope="col">
            UpdateDate
        </th>
    </tr>
</table>
